/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package expo43score;

import java.io.IOException;

/**
 *
 * @author TommySprat
 */
public class ScoreThread extends Thread {
    Expo43ScoreView viewOBJ;
    
    public ScoreThread(Expo43ScoreView viewOBJ){
        this.viewOBJ = viewOBJ;
    }
    
    @Override
    public void run(){
        while(true){
            viewOBJ.addScore();
            try{
            sleep(1500);
            }catch(InterruptedException exc){
                System.out.println("ScoreThread interrupted");
            }
        }
    }
}
